﻿<!--
 Peter
 Created by: Peter Development Team
    http://peter.codeplex.com/
 
 GNU General Public License version 2 (GPLv2)
    http://peter.codeplex.com/license
 
 This code is provided on an AS IS basis, with no WARRANTIES,
  CONDITIONS or GUARANTEES of any kind.
-->
<UserControl x:Class="Peter.View.Dialogs.ViewMessageDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:dialogs="clr-namespace:Peter.Logic.Dialogs"
             xmlns:icons="clr-namespace:Peter.Common.Icons;assembly=Peter.Common"
             mc:Ignorable="d" 
             d:DesignHeight="200" d:DesignWidth="400"
             d:DataContext="{d:DesignInstance dialogs:ModelMessageDialog}">
   <Grid>
      <Grid.RowDefinitions>
         <RowDefinition Height="Auto" />
         <RowDefinition Height="*" />
      </Grid.RowDefinitions>
      
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="Auto" />
         <ColumnDefinition Width="*" />
      </Grid.ColumnDefinitions>

      <Border Grid.Row="0"
              Grid.Column="0"
              Grid.ColumnSpan="2"
              BorderBrush="{StaticResource SelectedBackground}"
              BorderThickness="0,0,0,1">
         <TextBlock Text="{Binding Path=Title}"
                    FontWeight="Bold"
                    FontSize="14" />
      </Border>
      
      <icons:IconDisplay Icon="{Binding Path=Icon}"
                         Margin="10,0"
                         Grid.Row="1"
                         Grid.Column="0"
                         FontSize="64"/>

      <Grid Grid.Row="1"
            Grid.Column="1">
         <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
         </Grid.RowDefinitions>
         <TextBlock Text="{Binding Path=Message}"
                    TextWrapping="Wrap"
                    Grid.Row="0"
                    FontSize="12"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center" />
         <TextBlock Text="{Binding Path=SubMessage}"
                    TextWrapping="Wrap"
                    Grid.Row="1"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Center" />
      </Grid>
   </Grid>
</UserControl>
